package com.sservice.model.entity;

import com.sservice.urp.entity.QueryCondition;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

public class PurchaseOrder extends QueryCondition implements Serializable {
    private static final long serialVersionUID = -7836294904699022588L;
    private Integer id;

    private String no;

    private String purchaseId;

    private String title;

    private String goodsId;
    private String paperId; // 中丝销售合同号
    private String reason;
    private String applyPay; // 申请付款状态 0 未申请，1已申请
    private String applyPaper; // 0，未申请,1已申请，2部分收票，3已完全收票

    private BigDecimal originalPrice;

    private BigDecimal currentPrice;

    private BigDecimal numberActualReceive; // 收货中数量

    private BigDecimal number;// 订单数量
    private BigDecimal numberReceiving; // 收货中数量
    private BigDecimal total;
    private BigDecimal actualReceiveTotal; // 实收金额
    private String clienteleId;
    private String unitCode;
    private String batchNum; //批号
    private String clienteleName;
    private String clientelePerson;
    private String clientelePhone;
    private String payStatus;
    private String checkStatus;
    private String status;
    private String deliverPlace;
    private String type;
    private String userId;
    private String paperStatus;
    private String remark;
    private String daysFlag;
    private Integer days;
    private String payType;
    private String userName;
    private String hesuanStatus;
    private String hesuanPayStatus;
    private String hesuanCheckStatus;
    private String pack;
    private String quality;
    private BigDecimal taxRatio;
    private BigDecimal payTotal;// 合计付款总额
    private BigDecimal payCashTotal; // 合计现金付款
    private BigDecimal applyPayTotal; // 审核请付款金额
    private String goodsName; //
    private String applyBack; // 0 未申请退款，1已申请退款，2已退款
    private BigDecimal backTotal; //
    private String storeName; //
    private String applySignature; //
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private String paperTime; //
    private String deliverMethod; //0 自提 1送货至需方仓库
    private Date createAt;
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private Date storeTime; // 免费仓储期
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private Date payTime;  // 付款时间
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private Date deliverStart;  // 交货开始时间
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private Date deliverEnd;  // 交货街截止时间

    public static long getSerialVersionUID() {
        return serialVersionUID;
    }

    public BigDecimal getNumberReceiving() {
        return numberReceiving;
    }

    public void setNumberReceiving(BigDecimal numberReceiving) {
        this.numberReceiving = numberReceiving;
    }

    public String getRemark() {
        return remark;
    }

    public void setRemark(String remark) {
        this.remark = remark;
    }

    public String getDaysFlag() {
        return daysFlag;
    }

    public void setDaysFlag(String daysFlag) {
        this.daysFlag = daysFlag;
    }

    public Integer getDays() {
        return days;
    }

    public void setDays(Integer days) {
        this.days = days;
    }

    public String getPayType() {
        return payType;
    }

    public void setPayType(String payType) {
        this.payType = payType;
    }

    public String getReason() {
        return reason;
    }

    public void setReason(String reason) {
        this.reason = reason;
    }

    public String getBatchNum() {
        return batchNum;
    }

    public void setBatchNum(String batchNum) {
        this.batchNum = batchNum;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getNo() {
        return no;
    }

    public void setNo(String no) {
        this.no = no == null ? null : no.trim();
    }

    public String getPurchaseId() {
        return purchaseId;
    }

    public void setPurchaseId(String purchaseId) {
        this.purchaseId = purchaseId == null ? null : purchaseId.trim();
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title == null ? null : title.trim();
    }

    public String getGoodsId() {
        return goodsId;
    }

    public void setGoodsId(String goodsId) {
        this.goodsId = goodsId == null ? null : goodsId.trim();
    }

    public BigDecimal getOriginalPrice() {
        return originalPrice;
    }

    public void setOriginalPrice(BigDecimal originalPrice) {
        this.originalPrice = originalPrice;
    }

    public BigDecimal getCurrentPrice() {
        return currentPrice;
    }

    public void setCurrentPrice(BigDecimal currentPrice) {
        this.currentPrice = currentPrice;
    }

    public BigDecimal getNumber() {
        return number;
    }

    public void setNumber(BigDecimal number) {
        this.number = number;
    }

    public BigDecimal getTotal() {
        return total;
    }

    public void setTotal(BigDecimal total) {
        this.total = total;
    }

    public BigDecimal getNumberActualReceive() {
        return numberActualReceive;
    }

    public void setNumberActualReceive(BigDecimal numberActualReceive) {
        this.numberActualReceive = numberActualReceive;
    }

    public BigDecimal getActualReceiveTotal() {
        return actualReceiveTotal;
    }

    public void setActualReceiveTotal(BigDecimal actualReceiveTotal) {
        this.actualReceiveTotal = actualReceiveTotal;
    }

    public String getClienteleId() {
        return clienteleId;
    }

    public void setClienteleId(String clienteleId) {
        this.clienteleId = clienteleId == null ? null : clienteleId.trim();
    }

    public String getClienteleName() {
        return clienteleName;
    }

    public void setClienteleName(String clienteleName) {
        this.clienteleName = clienteleName == null ? null : clienteleName.trim();
    }

    public String getClientelePerson() {
        return clientelePerson;
    }

    public void setClientelePerson(String clientelePerson) {
        this.clientelePerson = clientelePerson == null ? null : clientelePerson.trim();
    }

    public String getClientelePhone() {
        return clientelePhone;
    }

    public void setClientelePhone(String clientelePhone) {
        this.clientelePhone = clientelePhone == null ? null : clientelePhone.trim();
    }

    public String getPayStatus() {
        return payStatus;
    }

    public void setPayStatus(String payStatus) {
        this.payStatus = payStatus == null ? null : payStatus.trim();
    }

    public String getCheckStatus() {
        return checkStatus;
    }

    public void setCheckStatus(String checkStatus) {
        this.checkStatus = checkStatus == null ? null : checkStatus.trim();
    }

    public String getStatus() {
        return status;
    }

    public void setStatus(String status) {
        this.status = status == null ? null : status.trim();
    }

    public String getDeliverPlace() {
        return deliverPlace;
    }

    public void setDeliverPlace(String deliverPlace) {
        this.deliverPlace = deliverPlace == null ? null : deliverPlace.trim();
    }

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type == null ? null : type.trim();
    }

    public String getUserId() {
        return userId;
    }

    public void setUserId(String userId) {
        this.userId = userId == null ? null : userId.trim();
    }

    public String getPaperStatus() {
        return paperStatus;
    }

    public void setPaperStatus(String paperStatus) {
        this.paperStatus = paperStatus == null ? null : paperStatus.trim();
    }

    public String getUserName() {
        return userName;
    }

    public void setUserName(String userName) {
        this.userName = userName == null ? null : userName.trim();
    }

    public Date getCreateAt() {
        return createAt;
    }

    public void setCreateAt(Date createAt) {
        this.createAt = createAt;
    }

    public Date getStoreTime() {
        return storeTime;
    }

    public void setStoreTime(Date storeTime) {
        this.storeTime = storeTime;
    }

    public Date getPayTime() {
        return payTime;
    }

    public void setPayTime(Date payTime) {
        this.payTime = payTime;
    }

    public String getApplyPay() {
        return applyPay;
    }

    public void setApplyPay(String applyPay) {
        this.applyPay = applyPay;
    }

    public String getApplyPaper() {
        return applyPaper;
    }

    public void setApplyPaper(String applyPaper) {
        this.applyPaper = applyPaper;
    }

    public String getHesuanStatus() {
        return hesuanStatus;
    }

    public void setHesuanStatus(String hesuanStatus) {
        this.hesuanStatus = hesuanStatus;
    }

    public String getHesuanPayStatus() {
        return hesuanPayStatus;
    }

    public void setHesuanPayStatus(String hesuanPayStatus) {
        this.hesuanPayStatus = hesuanPayStatus;
    }

    public String getHesuanCheckStatus() {
        return hesuanCheckStatus;
    }

    public void setHesuanCheckStatus(String hesuanCheckStatus) {
        this.hesuanCheckStatus = hesuanCheckStatus;
    }

    public BigDecimal getTaxRatio() {
        return taxRatio;
    }

    public void setTaxRatio(BigDecimal taxRatio) {
        this.taxRatio = taxRatio;
    }

    public String getUnitCode() {
        return unitCode;
    }

    public void setUnitCode(String unitCode) {
        this.unitCode = unitCode;
    }

    public BigDecimal getPayTotal() {
        return payTotal;
    }

    public void setPayTotal(BigDecimal payTotal) {
        this.payTotal = payTotal;
    }

    public BigDecimal getPayCashTotal() {
        return payCashTotal;
    }

    public void setPayCashTotal(BigDecimal payCashTotal) {
        this.payCashTotal = payCashTotal;
    }

    public String getPack() {
        return pack;
    }

    public void setPack(String pack) {
        this.pack = pack;
    }

    public String getQuality() {
        return quality;
    }

    public void setQuality(String quality) {
        this.quality = quality;
    }

    public BigDecimal getApplyPayTotal() {
        return applyPayTotal;
    }

    public void setApplyPayTotal(BigDecimal applyPayTotal) {
        this.applyPayTotal = applyPayTotal;
    }

    public String getGoodsName() {
        return goodsName;
    }

    public void setGoodsName(String goodsName) {
        this.goodsName = goodsName;
    }

    public String getStoreName() {
        return storeName;
    }

    public void setStoreName(String storeName) {
        this.storeName = storeName;
    }

    public String getApplyBack() {
        return applyBack;
    }

    public void setApplyBack(String applyBack) {
        this.applyBack = applyBack;
    }

    public BigDecimal getBackTotal() {
        return backTotal;
    }

    public void setBackTotal(BigDecimal backTotal) {
        this.backTotal = backTotal;
    }

    public String getApplySignature() {
        return applySignature;
    }

    public void setApplySignature(String applySignature) {
        this.applySignature = applySignature;
    }

    public String getPaperTime() {
        return paperTime;
    }

    public void setPaperTime(String paperTime) {
        this.paperTime = paperTime;
    }

    public String getDeliverMethod() {
        return deliverMethod;
    }

    public void setDeliverMethod(String deliverMethod) {
        this.deliverMethod = deliverMethod;
    }

    public Date getDeliverStart() {
        return deliverStart;
    }

    public void setDeliverStart(Date deliverStart) {
        this.deliverStart = deliverStart;
    }

    public Date getDeliverEnd() {
        return deliverEnd;
    }

    public void setDeliverEnd(Date deliverEnd) {
        this.deliverEnd = deliverEnd;
    }
}